{if isset($modoEdicao) && $modoEdicao}
	<form action="" method="post" enctype="multipart/form-data">
{/if}
<div id="divMenu">
	{if $arrayMenu}
		<ul id="ulItensMenuPrincipal">
			{foreach from=$arrayMenu item='itemMenu' }
				<li {if $itemMenu.id != ''}id="{$itemMenu.id}"{/if} class="{$itemMenu.class}">
					{if $itemMenu.href != ''}
						<a href="{$itemMenu.href}">
							{$itemMenu.texto}
						</a>
					{else}
						<p title="{$itemMenu.title}">
							{$itemMenu.texto}
						</p>
					{/if}
					{if $itemMenu.aberto && count($itemMenu.submenu) > 0}
						<ul class="ulSubitensMenuPrincipal">
						{foreach from=$itemMenu.submenu item='itemSubmenu'}
							<li {if $itemSubmenu.id != ''}id="{$itemSubmenu.id}"{/if} class="{$itemSubmenu.class}">
								{if $itemSubmenu.href != ''}
									<a href="{$itemSubmenu.href}">
										{$itemSubmenu.texto}
									</a>
								{else}
									{if isset($itemSubmenu.edicao) && $itemSubmenu.edicao}
										<input type="checkbox" id="{$itemSubmenu.name}" name="{$itemSubmenu.name}" {if $itemSubmenu.checked} checked="checked" {/if} />
										<label for="{$itemSubmenu.name}">
											{$itemSubmenu.texto}
										</label>
									{else}
										<p title="{$itemSubmenu.title}">
											{$itemSubmenu.texto}
										</p>
									{/if}
								{/if}
								{if $itemSubmenu.aberto && count($itemSubmenu.submenu) > 0}
									<ul class="ulSubsubitensMenuPrincipal">
									{foreach from=$itemSubmenu.submenu item='itemSubmenuSubmenu'}
										<li {if $itemSubmenuSubmenu.id != ''}id="{$itemSubmenuSubmenu.id}"{/if} class="{$itemSubmenuSubmenu.class}">
											{if $itemSubmenuSubmenu.href != ''}
												<a href="{$itemSubmenuSubmenu.href}">
													{$itemSubmenuSubmenu.texto}
												</a>
											{else}
												<p title="{$itemSubmenuSubmenu.title}">
													{$itemSubmenuSubmenu.texto}
												</p>
											{/if}
										</li>
									{/foreach}
									</ul>
								{/if}
							</li>
						{/foreach}
						</ul>
					{/if}
				</li>
			{/foreach}
		</ul>
		{if (isset($modoEdicao) && !$modoEdicao) || !isset($modoEdicao)}
			{if $possivelMudarVisualizacao}
				<form action="" method="post" id="menuFormVisualizacao">
					<fieldset>
						<label for="visualizacaoAtual">
							Visualização Atual:
						</label>
						<select name="visualizacaoAtual" id="visualizacaoAtual">
							<option value="Professor" {if $visualizacaoAtual == "Professor"} selected="selected" {/if}>
								{constructoretexto exibir=DADOS_PROFESSOR}
							</option>
							<option value="Aluno" {if $visualizacaoAtual == "Aluno"} selected="selected" {/if}>
								{constructoretexto exibir=DADOS_ALUNO}
							</option>
						</select>
						<input type="submit" id="btnMudarVisualizacao" name="btnMudarVisualizacao" value="Ok"/>
					</fieldset>
				</form>
			{/if}
		{/if}
	{/if}
</div>
{if $exibirMensagensErro}
	<div id='divMensagensErro'>
		<ul>
			{foreach from=$mensagensErro item='mensagemErro' }
				<li>
					{$mensagemErro}
				</li>
			{/foreach}
		</ul>
	</div>
{/if}
{if $exibirMensagens}
	<div id='divMensagens'>
		<ul>
			{foreach from=$mensagens item='mensagem' }
				<li>
					{$mensagem}
				</li>
			{/foreach}
		</ul>
	</div>
{/if}
